<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>个人信息-{$tpshop_config['shop_info_store_title']}</title>
    <link rel="shortcut icon" href="{$tpshop_config['shop_info_store_ico']}"/>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}"/>
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}"/>
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/slider.js"></script>

</head>
<body>
<!--------头部开始-------------->
<include file="Public/header"/>
<!--------头部结束-------------->

<div class="layout ov-hi">
    <div class="breadcrumb-area">
        <foreach name="navigate_user" key="k" item="v">
            <if condition="$k neq '首页'"> ></if>
            <a href="{$v}">{$k}</a>
        </foreach>
    </div>
</div>
<div class="layout pa-to-10 fo-fa-ar">
    <!--菜单-->
    <include file="User/menu"/>
    <!--菜单-->
    <div class="fr wi940">
        <div class="xgzl-w">
            <form action="" method="post">
                <dl>
                    <dd class="te-al po-re wi230 fl">
                        <img class="headpic" src="{$user.head_pic|default='__STATIC__/images/headPic.jpg'}"/>
                        <input type="hidden" name="head_pic" id="head_pic" value="{$user.head_pic}">
                        <div class="upload" onClick="GetUploadify2(1, 'head_pic', 'head_pic', 'add_img')">上传图像</div>
                    </dd>
                    <dt>
                        <if condition="$tpshop_config['reg_is_tgreg_statu'] eq 1">
                            <div>
                                <script type="text/javascript">
                                    function jsCopy() {
                                        var e = document.getElementById("copy-num");//对象是copy-num1
                                        e.select(); //选择对象
                                        document.execCommand("Copy"); //执行浏览器复制命令
                                        alert("复制成功");
                                    }
                                </script>
                                <input type="text" style="width:500px;" id="copy-num" readonly value="{$tgurl}"/>
                                <input type="button" onclick="jsCopy();" value="复制" />
                            </div>
                        </if>
                    </dt>
                    <dd class="fl ta-tldf">
                        <table style="width:700px;">
                            <tbody>
                            <tr>
                                <td class="cl_left">昵称：</td>
                                <td>
                                    <div class="dv_cell_left"><input type="text" name="nickname" class="imput_text vam"id="nickname" maxlength="20" autocomplete="off" value="{$user.nickname}" <if condition="$tpshop_config['reg_reg_xg_2'] eq 0">disabled</if>  /></div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">Q Q：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="text" name="qq" class="imput_text vam" id="userInfo_nickName"maxlength="20" autocomplete="off" value="{$user.qq}"onpaste="this.value=this.value.replace(/[^\d]/g,'')" onKeyUp="this.value = this.value.replace(/[^\d]/g, '')" <if condition="$tpshop_config['reg_reg_xg_4'] eq 0">disabled</if>  />
                                        <span id="msg_nickName"></span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">微信：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="text" name="weixin" class="imput_text vam" maxlength="20"autocomplete="off" value="{$user.weixin}" <if condition="$tpshop_config['reg_reg_xg_2'] eq 0">disabled</if> />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">开户银行：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="text" name="bank_opening" class="imput_text vam" maxlength="20"autocomplete="off" value="{$user.bank_opening}"  <if condition="$tpshop_config['reg_reg_xg_10'] eq 0">disabled</if> />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">分行支行：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="text" name="bank_address" class="imput_text vam" maxlength="20"autocomplete="off" value="{$user.bank_address}"  <if condition="$tpshop_config['reg_reg_xg_11'] eq 0">disabled</if>  />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">开户姓名：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="text" name="bank_name" class="imput_text vam" maxlength="20"autocomplete="off" value="{$user.bank_name}"  <if condition="$tpshop_config['reg_reg_xg_1'] eq 0">disabled</if>  />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">银行账号：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="text" name="bank_account" class="imput_text vam" maxlength="20"autocomplete="off" value="{$user.bank_account}"  <if condition="$tpshop_config['reg_reg_xg_12'] eq 0">disabled</if>  />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">身份证号：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="text" name="card" class="imput_text vam" maxlength="20"autocomplete="off" value="{$user.card}"  <if condition="$tpshop_config['reg_reg_xg_8'] eq 0">disabled</if> />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">支付宝号：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <input type="text" name="zfb" class="imput_text vam" maxlength="20"autocomplete="off" value="{$user.zfb}"  <if condition="$tpshop_config['reg_reg_xg_6'] eq 0">disabled</if>  />
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">邮箱：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <span class="check"> {$user.email}</span>
                                        <if condition="$user['email_validated'] eq 0">
                                            <a href="{:U('Home/User/email_validate',array('type'=>'email','step'=>1))}">未验证(点击验证)</a>
                                            <else/>
                                            <a href="{:U('Home/User/email_validate',array('type'=>'email','step'=>1))}">已验证(点击修改)</a>
                                        </if>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">手机：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <span class="check">{$user.mobile}</span>
                                        <if condition="$user['mobile_validated'] eq 0">
                                            <a href="{:U('Home/User/mobile_validate',array('type'=>'mobile','step'=>1))}">未验证(点击验证)</a>
                                            <else/>
                                            <a href="{:U('Home/User/mobile_validate',array('type'=>'mobile','step'=>1))}">已验证(点击修改)</a>
                                        </if>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">登录密码：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <a href="{:U('Home/User/password')}">更改</a>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">交易密码：</td>
                                <td>
                                    <div class="dv_cell_left">
                                        <a href="{:U('Home/User/secpwd')}">更改</a>
                                    </div>
                                </td>
                            </tr>

                            <tr>
                                <td class="cl_left">性别：</td>
                                <td>
                                    <input type="radio" name="sex" checked="checked" id="gd_secret"
                                    <if condition="$user['sex'] eq '0'">checked</if>
                                    value="0"> <label for="gd_secret">保密</label>
                                    <input type="radio" name="sex" id="gd_mile" style="margin-left:10px;"
                                    <if condition="$user['sex'] eq '1'">checked</if>
                                    value="1"> <label for="gd_mile">男</label>
                                    <input type="radio" name="sex" id="gd_femile" style="margin-left:10px;"
                                    <if condition="$user['sex'] eq '2'">checked</if>
                                    value="2"> <label for="gd_femile">女</label>
                                </td>
                            </tr>
                            <tr>
                                <td class="cl_left">城市地区：</td>
                                <td>
                                    <select class="selec" name="province" id="province" onChange="get_city(this)">
                                        <option value="0">请选择</option>
                                        <volist name="province" id="p">
                                            <option
                                            <if condition="$user['province'] eq $p['id']">selected</if>
                                            value="{$p.id}">{$p.name}</option>
                                        </volist>
                                    </select>

                                    <select class="selec" name="city" id="city" onChange="get_area(this)">
                                        <option value="0">请选择</option>
                                        <volist name="city" id="p">
                                            <option
                                            <if condition="$user['city'] eq $p['id']">selected</if>
                                            value="{$p.id}">{$p.name}</option>
                                        </volist>
                                    </select>

                                    <select class="selec" name="district" id="district" onChange="get_twon(this)">
                                        <option value="0">请选择</option>
                                        <volist name="district" id="p">
                                            <option
                                            <if condition="$user['district'] eq $p['id']">selected</if>
                                            value="{$p.id}">{$p.name}</option>
                                        </volist>
                                    </select>

                                    <select class="selec" name="twon" id="twon"
                                    <if condition="$user['twon'] gt 0 ">style="display:block;"
                                        <else/>
                                        style="display:none;"
                                    </if>
                                    >
                                    <volist name="twon" id="p">
                                        <option
                                        <if condition="$user['twon'] eq $p['id']">selected</if>
                                        value="{$p.id}">{$p.name}</option>
                                    </volist>
                                    </select>
                                    <br>
                                </td>
                            </tr>

                            <tr>
                                <td colspan="2" align="left">
                                    <input type="submit" value="保存" class="btn_midefy" id="btn_midefy">
                                    <input type="button" value="取消" class="btn_midefy" style="margin-left:20px;"id="btn_reload" onClick="">
                                </td>
                            </tr>
                            </tbody>
                        </table>

                    </dd>
                </dl>
            </form>

        </div>
    </div>
</div>
<div class="he80"></div>
<!--------footer-开始-------------->
<include file="Public/footer2"/>
<!--------footer-结束-------------->
</body>
<script src="__PUBLIC__/js/global.js"></script>
<script src="__PUBLIC__/js/pc_common.js"></script>

<script>

    function delimg(file, t) {
        $.get(
                "/index.php?m=Admin&c=Uploadify&a=delupload", {action: "del", filename: file}, function () {
                }
        );
        $('#head_pic').val('');
        $('#preview').attr('src', '');
        $(t).remove();
    }
    function add_img(str) {
        var head_pic = $('#head_pic').val();
        $('#head_pic').val(str);
        $('#preview').attr('src', str);
        $('img[class="headpic"]').attr('src', str);

        if (!head_pic) {
            $('#img_box').append('<button id="delimg" type="button" onclick="delimg(' + "'" + str + "'" + ',this)">删除图片</button>');
        } else {
            $('#delimg').attr('onclick', 'delimg(' + "'" + str + "'" + ',this)');
        }

    }
</script>

<script type="text/javascript">
    $(document).ready(function () {
        var icon_wh = $(".icon_wh");
        icon_wh.each(function () {
            var thisObj = $(this);
            thisObj.bind("mouseout", function () {
                $(this).next().css("display", "none");
            });
            thisObj.bind("mouseover", function () {
                $(this).next().css("display", "block");
            });
        });
    });
</script>

<script>
    $(function () {
        $("#h-s").mouseover(function () {
            $('.ec-ta-x').css('left', '124px');
            $('.ec-ta-x').css('width', '110px');
            $(this).addClass("cullent");
        });
        $("#h-s").mouseout(function () {
            $('.ec-ta-x').css('left', '0px');
            $('.ec-ta-x').css('width', '124px');
            $(this).removeClass("cullent");
        });
    });
    $(function () {
        $("#q-s").mouseover(function () {
            $('.ec-ta-x').css('left', '0px');
            $(this).addClass("cullent");
        });
        $("#q-s").mouseout(function () {
            $('.ec-ta-x').css('left', '0px');
        });
    });

</script>
</html>